package com.util;

import android.content.SharedPreferences;

import com.app.DemoApplication;

public class SpMsgSendTimeUtil {

	public static String MSG_SEND_TIME = "MSG_SEND_TIME";

	/**
	 * 
	 * @Description:TODO存储登录名
	 * @param sendTIme
	 * @return void
	 * @author zhuw
	 * @date 2013-3-14 下午5:58:08
	 */
	public static void saveSendTime(long sendTIme) {
		try {
			SharedPreferences.Editor editor = DemoApplication.mContext
					.getSharedPreferences(MSG_SEND_TIME, 0).edit();
			editor.putLong("MSG_SEND_TIME", sendTIme);
			editor.commit();
		} catch (Exception e) {
			e.printStackTrace();
		}

	}

	public static long getSendTime() {
		long result = 0l;
		SharedPreferences sp = DemoApplication.mContext.getSharedPreferences(
				MSG_SEND_TIME, 0);
		result = sp.getLong("MSG_SEND_TIME", 0l);
		return result;

	}

}
